import * as actionTypes from './constants';

const defaultstate = {
    detailData:{}
}

const reducer = (state = defaultstate, action) => {
    switch (action.type) {
        case actionTypes.SET_DETAIL_DATA:
            return {
                ...state,
                detailData:action.data
            }
        default:
            return state;
    }
}
export default reducer;